//
//@File    :	13.3_usett0.cpp
//@Time    :	2021/09/18 10:44:09
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	using a base class
//

#include <iostream>
#include "13.1_tabtenn0.h"

int main(void)
{
    using std::cout;
    //初始化两个对象palyer1和2
    TableTennisPlayer player1("Chuck","Blizzard",true);
    TableTennisPlayer player2("Tara","Boomdea",false);
    player1.Name();
    //判断是否有球桌,并输出结果
    if (player1.HasTable())
    {
        cout<<": has a table.\n";
    }
    else
    {
        cout<<": hasn't a table.\n";
    }
    player2.Name();
    if (player2.HasTable())
    {
        cout<<": has a table.\n";
    }
    else
    {
        cout<<": hasn't a table.\n";
    }
    system("pause");
    return 0;
}